﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="order_operate.aspx.cs" Inherits="web.manage.order_operate" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title></title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<link href="css/control.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <script type="text/javascript" language="javascript" src="/js/calendar.js"></script>

    <div>
    <table width="90%">
        <tr><td colspan="4"><b>订单详细信息:<% = entity_Order.orderCode %></b></td></tr>
	    <tr><td align="left">经销商编号</td> <td><% = !string.IsNullOrEmpty(entity_Order.orderCode) && entity_Order.orderCode.Length>0 ? entity_Order.orderCode.Substring(0, 2) : ""%></td>
	        <td align="left">支付方式</td> <td><% = entity_Order.payType %></td></tr>
	    <tr><td align="left">收货人姓名</td> <td><% = entity_Order.receiverName %></td>
	        <td align="left">收货人性别</td> <td></td></tr>
	    <tr><td align="left">收货人地址</td> <td><% = entity_Order.receiverAddress %></td>
	        <td align="left">收货人邮编</td> <td><% = entity_Order.receiverPostCode %></td></tr>
	    <tr><td align="left">收货人电话</td> <td><% = entity_Order.receiverTelephone %></td>
	        <td align="left">收货人手机</td> <td><% = entity_Order.receiverMobile %></td></tr>
	    <tr><td align="left">收货人EMail</td> <td><% = entity_Order.receiverEmail %></td>
	        <td align="left">订单备注留言</td> <td><% = entity_Order.orderRemark %></td></tr>
	    <tr><td align="left">下单时间</td> <td><% = entity_Order.orderTime %></td>
	        <td align="left">工程地址</td> <td><% = entity_Order.gongchengdizhi %></td></tr>
	    <tr>
	    <td colspan="2">
	    <br />
	    财务审核:<asp:DropDownList ID="ddlcaiwu" runat="server">
	             <asp:ListItem Text="没有审核" Value="没有审核"></asp:ListItem>
	             <asp:ListItem Text="同意" Value="同意"></asp:ListItem>
	             <asp:ListItem Text="不同意" Value="不同意"></asp:ListItem>
	             </asp:DropDownList><br /><br />
	    技术审核:<asp:DropDownList ID="ddljishu" runat="server">
	             <asp:ListItem Text="没有审核" Value="没有审核"></asp:ListItem>
	             <asp:ListItem Text="同意" Value="同意"></asp:ListItem>
	             <asp:ListItem Text="不同意" Value="不同意"></asp:ListItem>
	             </asp:DropDownList><br /><br />
	    交货日期:<input type="text" id="txtDeadlineTime" runat="server" readonly="readonly" onclick="calendar.show(this);" />
            <br />
            <br />
	                订单状态:<asp:DropDownList ID="ddlStatus" runat="server">
	    <asp:ListItem Text="订单已删除" Value="-1"></asp:ListItem>
	    <asp:ListItem Text="订单已完成" Value="2"></asp:ListItem>
	    <asp:ListItem Text="已通过审核" Value="1"></asp:ListItem>
	    <asp:ListItem Text="正在处理中" Value="0"></asp:ListItem>
            </asp:DropDownList>
            <br /><br />
            <asp:Button ID="btnSet" runat="server" Text="审核" onclick="btnSet_Click" />
	    </td>
	    <td colspan="2">
            <asp:TextBox ID="tbReply" runat="server" Height="108px" TextMode="MultiLine" 
                Width="326px"></asp:TextBox>
            <br />
            <br />
            <asp:Button ID="btnReply"
                runat="server" Text="回复留言" onclick="btnReply_Click" />
	    </td>
	    </tr>
	    <tr><td colspan="4">
            <asp:TextBox ID="tbJinDu" runat="server" Width="302px"></asp:TextBox>
            <asp:Button ID="btnSetJindu"
                runat="server" Text="设置订单进度" onclick="btnSetJindu_Click" /></td></tr>
    </table>
    
    <div style="padding:7px 0; text-align:center;overflow-y:scroll;width:100%;height:300px">
	    <asp:Repeater ID="rptList" runat="server">
	    <HeaderTemplate>
	    <table style="word-break: keep-all;">
	    <tr height="30" style=" background-color:#e0e0e0">
	    <th nowrap="noWrap" align="left">工件名称</th>
	    <th nowrap="noWrap" align="left">规格-高</th>
	    <th nowrap="noWrap" align="left">规格-宽</th>
	    <th nowrap="noWrap" align="left">规格-深</th>
	    <th nowrap="noWrap" align="left">门型号</th>
	    <th nowrap="noWrap" align="left">门减</th>
	    <th nowrap="noWrap" align="left">开启方向</th>
	    <th nowrap="noWrap" align="left">单双口</th>
	    <th nowrap="noWrap" align="left">基材-门</th>
	    <th nowrap="noWrap" align="left">基材-框板</th>
	    <th nowrap="noWrap" align="left">基材-口线</th>
	    <th nowrap="noWrap" align="left">口线线型</th>
	    <th nowrap="noWrap" align="left">横口线-线宽</th>
	    <th nowrap="noWrap" align="left">横口线-数量</th>
	    <th nowrap="noWrap" align="left">横口线-线宽</th>
	    <th nowrap="noWrap" align="left">横口线-数量</th>
	    <th nowrap="noWrap" align="left">立口线-线宽</th>
	    <th nowrap="noWrap" align="left">立口线-数量</th>
	    <th nowrap="noWrap" align="left">立口线-线宽</th>
	    <th nowrap="noWrap" align="left">立口线-数量</th>
	    <th nowrap="noWrap" align="left">立口线-线宽</th>
	    <th nowrap="noWrap" align="left">立口线-数量</th>
	    <th nowrap="noWrap" align="left">上帽</th>
	    <th nowrap="noWrap" align="left">木皮</th>
	    <th nowrap="noWrap" align="left">油漆类型</th>
	    <th nowrap="noWrap" align="left">油漆颜色-门</th>
	    <th nowrap="noWrap" align="left">油漆颜色-框板</th>
	    <th nowrap="noWrap" align="left">油漆颜色-口线</th>
	    <th nowrap="noWrap" align="left">锁具</th>
	    <th nowrap="noWrap" align="left">价格</th>
	    <th nowrap="noWrap" align="left">门是否居中</th>
	    </tr>
	    </HeaderTemplate>
	    <ItemTemplate>
	    <tr height="30" style=" background-color:<%# Container.ItemIndex%2==0?"#ffffff":"#f0f0f0"%>">
	    <td nowrap="noWrap" align="left"><%#Eval("name")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("guiGeGao", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("guiGeKuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("guiGeShen", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("menXingHao")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("menJian")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("kaiQiFangXiang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("danShuangKou")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("jiCaiMen")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("jiCaiKuangBan")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("jiCaiKouXian")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("kouXianXianXing")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("hengKouXianXianKuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("hengKouXianShuLiang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("hengKouXian1XianKuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("hengKouXian1ShuLiang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("liKouXianXianKuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxianshuliang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxian1xiankuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxian1shuliang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxian2xiankuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxian2shuliang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("shangmao")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("mupi")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("youqileixing")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("youqiyansemen")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("youqiyansekuangban")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("youqiyansekouxian")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("suoju")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("jiage")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("dinggoushuliang").ToString()=="0"?"正常门":"居中门"%></td>
	    </tr>
	    </ItemTemplate>
	    <FooterTemplate>
	    </table>
	    </FooterTemplate>
	    </asp:Repeater>
	    <asp:Repeater ID="Repeater1" runat="server">
	    <HeaderTemplate>
	    <table style="word-break: keep-all;">
	    <tr height="30" style=" background-color:#e0e0e0">
	    <th nowrap="noWrap" align="left">工件名称</th>
	    <th nowrap="noWrap" align="left">规格-高</th>
	    <th nowrap="noWrap" align="left">规格-宽</th>
	    <th nowrap="noWrap" align="left">规格-深</th>
	    <th nowrap="noWrap" align="left">单双口</th>
	    <th nowrap="noWrap" align="left">基材-框板</th>
	    <th nowrap="noWrap" align="left">基材-口线</th>
	    <th nowrap="noWrap" align="left">口线线型</th>
	    <th nowrap="noWrap" align="left">横口线-线宽</th>
	    <th nowrap="noWrap" align="left">横口线-数量</th>
	    <th nowrap="noWrap" align="left">横口线-线宽</th>
	    <th nowrap="noWrap" align="left">横口线-数量</th>
	    <th nowrap="noWrap" align="left">立口线-线宽</th>
	    <th nowrap="noWrap" align="left">立口线-数量</th>
	    <th nowrap="noWrap" align="left">立口线-线宽</th>
	    <th nowrap="noWrap" align="left">立口线-数量</th>
	    <th nowrap="noWrap" align="left">立口线-线宽</th>
	    <th nowrap="noWrap" align="left">立口线-数量</th>
	    <th nowrap="noWrap" align="left">上帽</th>
	    <th nowrap="noWrap" align="left">木皮</th>
	    <th nowrap="noWrap" align="left">油漆类型</th>
	    <th nowrap="noWrap" align="left">油漆颜色-框板</th>
	    <th nowrap="noWrap" align="left">油漆颜色-口线</th>
	    <th nowrap="noWrap" align="left">价格</th>
	    <th nowrap="noWrap" align="left">订购数量</th>
	    </tr>
	    </HeaderTemplate>
	    <ItemTemplate>
	    <tr height="30" style=" background-color:<%# Container.ItemIndex%2==0?"#ffffff":"#f0f0f0"%>">
	    <td nowrap="noWrap" align="left"><%#Eval("name")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("guigegao", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("guigekuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("guigeshen", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("danshuangkou")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("jicaikuangban")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("jicaikouxian")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("kouxianxianxing")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("hengkouxianxiankuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("hengkouxianshuliang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("hengkouxian1xiankuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("hengkouxian1shuliang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxianxiankuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxianshuliang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxian1xiankuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxian1shuliang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxian2xiankuan", "{0:F0}")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("likouxian2shuliang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("shangmao")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("mupi")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("youqileixing")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("youqiyansekuangban")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("youqiyansekouxian")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("jiage")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("dinggoushuliang")%></td>
	    
	    </tr>
	    </ItemTemplate>
	    <FooterTemplate>
	    </table>
	    </FooterTemplate>
	    </asp:Repeater>
	    <asp:Repeater ID="Repeater2" runat="server">
	    <HeaderTemplate>
	    <table style="word-break: keep-all;">
	    <tr height="30" style=" background-color:#e0e0e0">
	    <th nowrap="noWrap" align="left">名称</th>
	    <th nowrap="noWrap" align="left">规格</th>
	    <th nowrap="noWrap" align="left">数量</th>
	    <th nowrap="noWrap" align="left">规格</th>
	    <th nowrap="noWrap" align="left">数量</th>
	    <th nowrap="noWrap" align="left">基材</th>
	    <th nowrap="noWrap" align="left">木皮</th>
	    <th nowrap="noWrap" align="left">颜色</th>
	    <th nowrap="noWrap" align="left">订购数量</th>
	    </tr>
	    </HeaderTemplate>
	    <ItemTemplate>
	    <tr height="30" style=" background-color:<%# Container.ItemIndex%2==0?"#ffffff":"#f0f0f0"%>">
	    <td nowrap="noWrap" align="left"><%#Eval("name")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("guige")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("shuliang")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("guige1")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("shuliang1")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("jicai")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("mupi")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("yanse")%></td>
	    <td nowrap="noWrap" align="left"><%#Eval("dinggoushuliang")%></td>
	    </tr>
	    </ItemTemplate>
	    <FooterTemplate>
	    </table>
	    </FooterTemplate>
	    </asp:Repeater>
    </div>
    </div>
    	<script language="JavaScript">
        <!--
    	    var TbRow = document.getElementsByTagName("table");
    	    if (TbRow != null) {
    	        for (var j = 0; j < TbRow.length; j++) {
    	            var single = TbRow[j];
    	            for (var i = 0; i < single.rows.length; i++) {
    	                if (single.rows[i].rowIndex % 2 == 1) {
    	                    single.rows[i].style.backgroundColor = "";
    	                }
    	                else {
    	                    single.rows[i].style.backgroundColor = "#f7f7f7";
    	                }
    	            }
    	        }
    	    }
        //-->
        </script>
    </form>
</body>
</html>
